package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 项目角色 
 * @Author  yanluping@outlook.com
 * @Date 2020-01-09 19:15:53 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "项目角色")
@Table ( name ="Project_Role")
public class ProjectRole  implements Serializable {

	private static final long serialVersionUID =  2089259127410175802L;

	/**
	 * 项目角色ID
	 */
	@ApiModelProperty(value = "项目角色ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Project_Role_Id" )
	private Long projectRoleId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 项目类型ID
	 */
	@ApiModelProperty(value = "项目类型ID")
   	@Column(name = "Project_Type_Id" )
	private Long projectTypeId;

	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 增加
	 */
	@ApiModelProperty(value = "增加")
   	@Column(name = "Put" )
	private Integer put;

	/**
	 * 删除
	 */
	@ApiModelProperty(value = "删除")
   	@Column(name = "Remove" )
	private Integer remove;

	/**
	 * 修改
	 */
	@ApiModelProperty(value = "修改")
   	@Column(name = "Edit" )
	private Integer edit;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getProjectRoleId() {
		return this.projectRoleId;
	}

	public void setProjectRoleId(Long projectRoleId) {
		this.projectRoleId = projectRoleId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public Long getProjectTypeId() {
		return this.projectTypeId;
	}

	public void setProjectTypeId(Long projectTypeId) {
		this.projectTypeId = projectTypeId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPut() {
		return this.put;
	}

	public void setPut(Integer put) {
		this.put = put;
	}

	public Integer getRemove() {
		return this.remove;
	}

	public void setRemove(Integer remove) {
		this.remove = remove;
	}

	public Integer getEdit() {
		return this.edit;
	}

	public void setEdit(Integer edit) {
		this.edit = edit;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"projectRoleId='" + projectRoleId + '\'' +
					"projectId='" + projectId + '\'' +
					"projectTypeId='" + projectTypeId + '\'' +
					"name='" + name + '\'' +
					"put='" + put + '\'' +
					"remove='" + remove + '\'' +
					"edit='" + edit + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
